package com.fei.springcloud.pojo;

import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Accessors(chain = true)//链式写法
public class Dept implements Serializable {
    private Long deptno;
    private String dname;
    private String dept_source;

    /**
     * 链式写法
     * Dept dept =new Dept()
     *
     * dept.setDeptNo().setDname()
     */
    public Dept() {
    }

    public Dept( String dname) {
        this.dname = dname;
    }

    public Long getDeptno() {
        return deptno;
    }

    public void setDeptno(Long deptno) {
        this.deptno = deptno;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getDept_source() {
        return dept_source;
    }

    public void setDept_source(String dept_source) {
        this.dept_source = dept_source;
    }
}
